import java.util.Arrays;
import java.util.Scanner;
public class six {
    public static void main(String[] args) {
        System.out.println("请输入三个数：");
        Scanner input = new Scanner(System.in);
        double num_1= input.nextDouble();
        double num_2= input.nextDouble();
        double num_3= input.nextDouble();
        System.out.println("请选择哪个数作为加减乘除符号：");
        double num=input.nextDouble();
        String lum=null;
        if(num==num_1){
            lum= Count(num_2,num_3);
        }
        else if(num==num_2){
            lum= Count(num_1,num_3);
        }
        else if(num==num_3){
            lum=Count(num_1,num_2);
        }
        else {
            System.out.println("您选择有误！");
        }
        System.out.println("加减乘除取余的结果为："+lum);
    }
    public static String Count(double x,double y){
        double[]sum=new double[5];
        sum[0]=x+y;
        sum[1]=x-y;
        sum[2]=x*y;
        sum[3]=x/y;
        sum[4]=x%y;
        return (Arrays.toString(sum));
    }

}